package com.stdspringboot.ctrl;

import com.stdspringboot.service.IModifyPasswordService;
import com.stdspringboot.vo.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ModifyPasswordCtrl {

    @Resource
    private IModifyPasswordService service;

    @RequestMapping("/modifyPassword")
    public JsonResult modify(String username,String newPassword){

        service.modify(username, newPassword);
        return null;
    }
}
